﻿
@*@using Super.Entity.Enum
@using Super.Framework.EF
@using Super.Entity
@using Super.Web.Areas.Admin.Models
@model IEnumerable<ActionPermission>

    @{
        ViewBag.Title = "Index";
        Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
    }
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 权限管理 <span class="c-gray en">&gt;</span> 权限项列表 <a class="btn btn-success radius r" id="btn-refresh" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a></nav>
    <div class="page-container">
        <div class="text-c">
            <form id="searchForm" action="/admin/ActionPermission/index/" method="get">
                <input type="text" class="input-text" style="width: 250px" placeholder="输入关键词" name="keyword" value="@ViewBag.keyWord">
                <button type="submit" class="btn btn-success radius"><i class="Hui-iconfont">&#xe665;</i>搜索</button>
            </form>

        </div>
        <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a href="javascript:;" onclick="sf_confirm('/admin/ActionPermission/ActionPermissionUpdate/','确定更新？破坏性比较强')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe68f;</i> 更新权限项</a> </span> <span class="r">共有数据：<strong>@ViewBag.itemCount</strong> 条</span> </div>
        <div class="mt-20">
            <table class="table table-border table-bordered table-hover table-bg table-sort">
                <thead>
                    <tr class="text-c">
                        <th><input type="checkbox" name="" value=""></th>
                        <th>ID</th>
                        <th>权限项描述</th>
                        <th>功能</th>
                        <th>更新时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                     {
                        <tr class="text-c">
                            <td><input type="checkbox" value="@item.Id" name="checkedList"></td>
                            <td id="companyId">@item.Id</td>
                            <td>@item.Description</td>
                            <td>@item.ControllerName/@item.ActionName</td>
                            <td>@item.CreateTime</td>
                            <td class="td-manage">
                                <a title="删除" href="javascript:;" onclick="sf_del('/admin/ActionPermission/ActionPermissionDelete?Id=@(item.Id)')" class="ml-5" style="text-decoration: none"><i class="Hui-iconfont">&#xe6e2;</i></a>
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
            <div id="adminPage"></div>
            <div style="clear:both;"></div>
        </div>
    </div>
    <script type="text/javascript">
        sf_page('adminPage', @ViewBag.pageCount);
    </script>*@

